home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.1 KB | 24 lines | [TEXT/GEOL] |
- Item 9647515 28-Dec-89 07:58
-
- From: D5284 BDM Int'l, Ann Confer,PRT
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: UMenuSetup shortcoming
-
-
-
- I wanted to report what I view as a shortcoming in the UMenuSetup Unit.
- Not all of the defined procedures and functions support menus that are defined
- via the Menu Manager calls NewMenu, AppendMenu, and InsertMenu. In particular,
- CmdEnabled and CmdToName both call GetResMenu, rather than GetMHandle, to set
- the menu handle. Therefore, these two procedures always return FALSE and "",
- respectively, if the menu is not defined via resources. Until you discover
- this, it can be very confusing when developing an application. Once I created
- copies of these procedures that use GetMHandle instead of GetResMenu (as is
- done in Enable) the values returned were correct. I suggest that all
- procedures and functions in UMenuSetup be updated to support both menus created
- from resources and menus created by calling the Menu Manager procedures
- directly.
-
-